import request from '@/utils/request'

// 获取通知列表
export function getNotices() {
  return request({
    url: '/notice',
    method: 'get',
  })
}

//删除消息
export function delNotice(id) {
  return request({
    url: '/notice/' + id,
    method: 'delete',
  })
}

//读消息
export function read(id) {
  return request({
    url: '/notice/read/' + id,
    method: 'put'
  })
}

//未读数量
export function nonReadCount() {
  return request({
    url: '/notice/nonReadCount',
    method: 'get',
  })
}
